package com.ryx.service;

import com.ryx.vo.req.RolePermissionOperationReqVo;

import java.util.List;

/**
 * @BelongsPackage: com.ryx.service
 * @Author: 容永轩
 * @CreateTime: 2020-12-28
 * @Description:  角色和权限中间表业务接口
 */
public interface RolePermissionService {

    //中间表数据插入
    void addRolePermission(RolePermissionOperationReqVo vo);


    List<String> getRoleIdsByPermissionId(String permissionId);

    int removeRoleByPermissionId(String permissionId);

    List<String> getPermissionIdsByRoleId(String roleId);

    int removeByRoleId(String roleId);

    List<String> getPermissionIdsByRoleIds(List<String> roleIds);


}
